str1 = 'make'
for i in str1:
    if i == 'k':
        print('不打印K')
        continue
    print(i)
print()
str2 = 'break'
for q in str2:
    if q == 'a':
        print('遇到A程序停止')
        break
    print(q)
print()
'''
while条件：
条件成立重复执行的代码.
else:
循环正常结束之后要执行的代码
'''
i = 0
while i < 5:
    print('我错了')
    i += 1
    break
else:
    print('原谅我了')
print('下面打印5遍我错了后继续执行else后面的代码')
i = 0
while i < 5:
    print('我错了')
    i += 1
    continue
else:
    print('原谅我了')
